/*
 *  @author EX-XIEYUWEN001
 * Filename:    KpiDateController.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年10月20日
 */
package com.paic.mhis.hcpms.quota.settlement.web.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.paic.mhis.hcpms.quota.settlement.biz.service.KpiDateService;
import com.paic.pafa.appclient.annotation.BizServicesProxy;

@Controller
@RequestMapping("/kpiDate/")
public class KpiDateController {
	@BizServicesProxy(beanName = "kpiDateService")
	private KpiDateService kpiDateService;

	@RequestMapping("kpiDate.do")
	@ResponseBody
	public Map<String, Object> findCostCover(@RequestParam("formatDate") String formatDate) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("formatDate", kpiDateService.getKpiSysDate(formatDate));
		return map;
	}
}
